project (base64_dynamic)

ADD_DEFINITIONS(-DBASE64_SHARED)
#添加源码
set (src
    ${CMAKE_CURRENT_SOURCE_DIR}/base64.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/base64.h
)
#设置静态库 后面加SHARED 与其它程序共享
add_library(base64_dynamic SHARED
    ${src}
)
#cmake自带的库不需要引用包含可用直接用

#学习进度-https://www.bilibili.com/video/BV1A7411f7jT?p=2&spm_id_from=pageDriver